var createANode = require('./create-a-node');
var Walker = require('./walker');

function parseTemplate(source, options) {
    options = options || {};
    options.trimWhitespace = options.trimWhitespace || 'none';
    var rootNode = createANode();
    if (typeof source !== 'string') {
        return rootNode;
    }
    source = source.replace(/<!--([\s\S]*?)-->/mg, '').replace(/(^\s+|\s+$)/g, '');
    var walker = new Walker(source);
    var tag=/<(\/)?([a-z0-o-]+)\s*/ig;

}